import { BackgroundTooltip } from "./BackgroundTooltip";
//class BitmapTooltip
    
    export  class BitmapTooltip extends BackgroundTooltip
    {
        constructor()
        {
            super();
            this.setPadding();
            return;
        }

        protected setPadding(): void
        {
            paddingTop = 2;
            paddingBottom = 2;
            paddingLeft = 2;
            paddingRight = 2;
            return;
        }

        public /* override */ set data(arg1)
        {
            if (!this.bitmap) 
            {
                this.bitmap = new Object /* flash.display.Bitmap */();
                contentContainer.addChild(this.bitmap);
            }
            if (arg1 is flash.display.BitmapData) 
            {
                this.bitmap.bitmapData = arg1 as Object /* flash.display.BitmapData */;
            }
            this.addChild(contentContainer);
            super.data = arg1;
            return;
        }

        protected /* var */bitmap: Object /* flash.display.Bitmap */;
    }
